package com.shenmazong.demosecurity0719.security;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author 军哥
 * @version 1.0
 * @description: 权限实体类
 * @date 2021/7/19 15:53
 */

@Data
public class MyRole implements GrantedAuthority {

    private String roleName;

    @Override
    public String getAuthority() {
        return roleName;
    }
}
